package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.pojo.Admin;

import java.util.Map;

public interface AdminService {

    Admin findByUsername(String username);
    Map<String,Object> getMenu(String uid);

    Map<String, Object> getInfo(String uid);

    void updateLastLogin(Admin admin, String ip);

    void register(Map assignbody, String ipAddr);

    void updatePassWord(String userInfo, String passWord, String newPassWord);

    Admin findByphone(String info);

    void add(Map assignbody);

    Map assignByAdminUid(String adminUid);

    void delete(String[] adminUids);

    void edit(Map updateBody);

    Map<String,Object> getList(String keyword, Long currentPage, Long pageSize);

    void restPassword(String uid);

    void updateEmail(String uid, String newInfo, String validCode);
}
